package com.ruoyi.individual.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@Data
@Builder
public class BorrowBook {
    /** 主键 */
    private Long id;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 书本编号 */
    @Excel(name = "书本编号")
    private String bookNum;

    /** 书名 */
    @Excel(name = "书名")
    private String name;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 借阅日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowDate;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 截至日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截至日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closeDate;

    /** 归还状态 */
    @Excel(name = "归还状态")
    private String state;

    /** 借阅者ID */
    @Excel(name = "所有者")
    private String owner;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phonenumber;

    /** 归还状态 */
    @Excel(name = "交易位置")
    private String location;
}
